'''
Author: zhanwei xu
Date: 2023-05-27 17:12:07
LastEditors: zhanwei xu
LastEditTime: 2024-02-03 14:45:21
Description: 

Copyright (c) 2023 by zhanwei xu, Tsinghua University, All Rights Reserved. 
'''
from fastapi import APIRouter, Request
from fastapi.responses import StreamingResponse,JSONResponse
from .chatbot import Chatbot
from .geminibot import Chatbot as GeminiBot
from .poe_client import poebot
import json

chat_router = APIRouter()

poebot = poebot()
@chat_router.post("/message_poe",summary="return the response of the message using poe")
async def process_message_poe(request: Request):
    return await poebot.poechat(request)
